home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / starship_fly3.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.3 KB  |  153 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_STARSHIP_FLY3)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. desc.LocalPosition = D3DXVECTOR3:new(0,0,0)
  9. desc.isAnimateTexture = false
  10. desc.RenderType = ENRENDERTYPE_GEOMETRY
  11.  
  12. Emitter = desc.PS.PSDescription
  13. Emitter.ParticleTypesNumber = 1
  14. Emitter.EmitterPosition = D3DXVECTOR3:new(0,0,0)
  15. Emitter.EmitterDirection = D3DXVECTOR3:new(0,0,0)
  16. Emitter.EmitterLifeTime = 1
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. PT = Emitter.ParticleTypesParams[1]
  45. PT.IsEmitterLocked = true
  46. PT.DrawOrder = 1
  47. PT.Material = ENMAT_PARTICLE_LIGHT
  48.  
  49.  
  50. PT.TextureName = "submarine_effect_tracesmoke.dds"
  51.  
  52. PT.ParticlesPerSecond = 20.0;
  53. PT.InitialNumberOfParticles = 0.0;
  54. PT.BaseLifeTime = 0.6;
  55. PT.BaseLifeTimeVariance = 0.0;
  56. PT.BaseSpeed = 0.0;
  57. PT.BaseSpeedVariance = 0.0;
  58.  
  59. PT.TangentSpeed = 0.0;
  60. PT.TangentSpeedVariance = 0.0;
  61. PT.TangentDirection = D3DXVECTOR3:new(1.0,0.0,0.0);
  62. PT.TangentAngleMin = 0.0;
  63. PT.TangentAngleMax = 6.28;
  64. PT.IsTangentDependOnBase = false;
  65.  
  66. PT.BaseAngle = 3.0;
  67. PT.BaseAngleVariance = 5.0;
  68. PT.BaseAngleSpeed = 0.2;
  69. PT.BaseAngleSpeedVariance = 0.3;
  70. PT.BaseAngleSpeedDirection = 0;
  71. PT.BaseDirection = D3DXVECTOR3:new(0.0,0.0,0.0);
  72. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  73. PT.BasePosition = D3DXVECTOR3:new(0,3,0);
  74. PT.BasePositionVariance = D3DXVECTOR3:new(3,3,3);
  75. PT.BaseSize = 4.0;
  76. PT.BaseSizeVariance = 0.2;
  77.  
  78. -- color over time
  79. PT.ColorOverTimeR[1].TimePercent = 0.0;
  80. PT.ColorOverTimeR[1].Value = 1.0;
  81. PT.ColorOverTimeG[1].TimePercent = 0.0;
  82. PT.ColorOverTimeG[1].Value = 0.7;
  83. PT.ColorOverTimeB[1].TimePercent = 0.0;
  84. PT.ColorOverTimeB[1].Value = 0.4;
  85.  
  86. PT.ColorOverTimeR[2].TimePercent = 1.0;
  87. PT.ColorOverTimeR[2].Value = 1.0;
  88. PT.ColorOverTimeG[2].TimePercent = 1.0;
  89. PT.ColorOverTimeG[2].Value = 0.7;
  90. PT.ColorOverTimeB[2].TimePercent = 1.0;
  91. PT.ColorOverTimeB[2].Value = 0.4;
  92.  
  93. -- transparency over time
  94. PT.TransparencyOverTime[1].TimePercent = 0.0;
  95. PT.TransparencyOverTime[1].Value = 0.3;
  96.  
  97. PT.TransparencyOverTime[2].TimePercent = 1.0;
  98. PT.TransparencyOverTime[2].Value = 0.0;
  99.  
  100. -- size over time
  101. PT.SizeOverTime[1].TimePercent = 0.0;
  102. PT.SizeOverTime[1].Value = 6.0;
  103.  
  104. PT.SizeOverTime[2].TimePercent = 1.0;
  105. PT.SizeOverTime[2].Value = 10.0;
  106.  
  107. -- Speed over time
  108. PT.SpeedOverTime[1].TimePercent = 0.0;
  109. PT.SpeedOverTime[1].Value = 0.0;
  110.  
  111. PT.SpeedOverTime[2].TimePercent = 0.5;
  112. PT.SpeedOverTime[2].Value = 0.0;
  113.  
  114. PT.SpeedOverTime[3].TimePercent = 1.0;
  115. PT.SpeedOverTime[3].Value = 0.0;
  116.  
  117. -- Tangent Speed over time
  118. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  119. PT.TangentSpeedOverTime[1].Value = 0.0;
  120.  
  121. PT.TangentSpeedOverTime[2].TimePercent = 0.1;
  122. PT.TangentSpeedOverTime[2].Value = 0.0;
  123.  
  124. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  125. PT.TangentSpeedOverTime[3].Value = 0.0;
  126.  
  127.  
  128. -- GravityAcceleration over time
  129. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  130. PT.GravityAccelerationOverTime[1].Value = 0.0;
  131.  
  132. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  133. PT.GravityAccelerationOverTime[2].Value = 0.0;
  134.  
  135. -- AngleSpeed over time
  136. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  137. PT.AngleSpeedOverTime[1].Value = 1.0;
  138.  
  139. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  140. PT.AngleSpeedOverTime[2].Value = 2.0;
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.